package com.itheimo;

public class SliverCard extends Card {
    public SliverCard(String carId, String cardName, String cardNumber, double money) {
        super(carId, cardName, cardNumber, money);
    }
    @Override
    public void xiaofei(double money) {
        System.out.println("尊敬的银卡车主, 您当前消费: " + money);
        System.out.println("优惠后的价格为: " + money*0.9);
        //更新银行消费后的余额
        setMoney(getMoney()-money*0.9);
        System.out.println("剩余金额: " + getMoney());
        ystem.out.println("-----");
    }
}
